package Items;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

import org.jsoup.Jsoup;
import org.jsoup.select.Elements;

public class hmparser{


	public static Elemento[] getElementos() throws IOException {

		java.net.URL url = new java.net.URL("http://cristianosuniversitarios.org/feed/podqast");

		BufferedReader rd = new BufferedReader
				(new InputStreamReader(url.openStream()));
		StringBuilder data = new StringBuilder(1000000);
		String line;
		while ((line = rd.readLine()) != null) data.append(line);
		rd.close();
		String result = data.toString();

		org.jsoup.nodes.Document doc = Jsoup.parse(result);
		Elements tabla = doc.getElementsByTag("item");

		for (org.jsoup.nodes.Element tablaelm : tabla) {
			String Hora = tabla.get(0).text();
			String Url = tabla.get(1).getElementsByTag("a").get(0).attr("href");
			String Tipo = tabla.get(1).getElementsByTag("a").get(0).attr("style");
			String Nombre = tabla.get(1).getElementsByTag("a").get(0).text();
			return null;
		}
		return null;
	}
	
}

